<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>PaleGem: Inc/IEventManager.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PaleGem
   &#160;<span id="projectnumber">0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f93dfce691d792349f1c14ede440e2e6.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">IEventManager.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_i_event_manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_i_event_data.html" title="Data structure that can be used to send data with events.">IEventData</a>;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565">   15</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565" title="All possible types of classes an event can be in.">EVENT_CLASS</a></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a230d22d3c096db888df52a0e5d5ba7ac">   18</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a230d22d3c096db888df52a0e5d5ba7ac" title="A generic class.">EC_UNKNOWN</a>,</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a8ce8a4f4df30c615e80bfed08ac1f110">   20</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a8ce8a4f4df30c615e80bfed08ac1f110" title="Events related to the physics system.">EC_PHYSICS</a>,</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565ad5ab5ff384f4398b592a8aae020d765e">   22</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565ad5ab5ff384f4398b592a8aae020d765e" title="Events related to the input system.">EC_INPUT</a>,</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565ab468cbf01af2d7241c274b2abd7f1b1a">   24</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565ab468cbf01af2d7241c274b2abd7f1b1a" title="Events related to the audio system.">EC_AUDIO</a>,</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a2920e4bd6ad466acdce12a86148bb49b">   26</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a2920e4bd6ad466acdce12a86148bb49b" title="Events related to the graphics system.">EC_GRAPHICS</a>,</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a8140a631dce2109ffec314dcf23f809f">   28</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a8140a631dce2109ffec314dcf23f809f" title="Events related to the ai system.">EC_AI</a>,</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a70d6eac52027df7ac1e5b5e5205ed24a">   30</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a70d6eac52027df7ac1e5b5e5205ed24a" title="Events related to the ENGINEframework.">EC_FRAMEWORK</a>,</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;};</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92">   42</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92" title="The actual event.">EVENT_NAME</a></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a0bdce79d948b8215713bcf669df0b8f1">   45</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a0bdce79d948b8215713bcf669df0b8f1" title="Use this to enable per frame updates.">E_UNKNOWN</a> = 0x100,  <span class="comment">// ALL</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92af5047fc01f1bd025e06411193dedec1a">   47</a></span>&#160;<span class="comment"></span>    <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92af5047fc01f1bd025e06411193dedec1a" title="Engine has been initialized.">E_ONINIT</a>,</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a672bcef65b9c9d2a2232e51d3779574d">   49</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a672bcef65b9c9d2a2232e51d3779574d" title="Engine is going to shut down.">E_ONSHUTDOWN</a>,</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92aa5c5cacc4a9f80c57a6fd764074c6ecc">   51</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92aa5c5cacc4a9f80c57a6fd764074c6ecc" title="A level has been loaded.">E_ONLEVELLOADED</a>,</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92ab6aa32742f704a2482f223b2cdef178c">   53</a></span>&#160;    <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92ab6aa32742f704a2482f223b2cdef178c" title="Something went terribly wrong, engine will shutdown.">E_ONCRITICAL_ERROR</a>,</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;};</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="class_i_event_manager.html">   59</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_i_event_manager.html" title="Manages events and listeners.">IEventManager</a></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="class_i_event_manager.html#a6f0594c36436cef0ec2f1a292e696a3c">   62</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_i_event_manager.html#a6f0594c36436cef0ec2f1a292e696a3c">~IEventManager</a>() {}</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_event_manager.html#a71e4cf7f0b61929a3f878e0d09778d9b" title="Updates the event manager.">Update</a>(<span class="keywordtype">float</span> frameTime) = 0;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_event_manager.html#a4bc99cb0ef622ba2ec2ab0e1f2ca16c9" title="Registers an object to receive all events.">RegisterListener</a>(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a>* listener, <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565" title="All possible types of classes an event can be in.">EVENT_CLASS</a> eventClass = <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a230d22d3c096db888df52a0e5d5ba7ac" title="A generic class.">EC_UNKNOWN</a>, <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92" title="The actual event.">EVENT_NAME</a> eventName = <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a0bdce79d948b8215713bcf669df0b8f1" title="Use this to enable per frame updates.">E_UNKNOWN</a> ) = 0;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_event_manager.html#a5e6327650d496ce27637550bc46d808b" title="Unregisters an object.">UnregisterListener</a>(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a>* listener) = 0;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_event_manager.html#a392a23f11ab77aa893cbef5bd4cd6fa8" title="Queues an event that is then received by the obj that registered for it.">RegisterEvent</a>(<span class="keywordtype">int</span> eventName, <span class="keywordtype">int</span> eventClass, <a class="code" href="struct_i_event_data.html" title="Data structure that can be used to send data with events.">IEventData</a> *pData = NULL) = 0;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_event_manager.html#aa5e47321003d80135281a90034c7064e" title="Shuts down the event manager, frees leftover events and listeners, deallocates memory.">ShutDown</a>() = 0;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;};</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 1 2013 11:55:07 for PaleGem by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
